<%--
  Created by IntelliJ IDEA.
  User: Think
  Date: 2017/12/14
  Time: 9:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>登录成功</title>
</head>
<body>
<div>
    欢迎，${subject.principal}，登录成功！<a href="${pageContext.request.contextPath}/logout">退出</a>
    
    <shiro:hasRole name="admin">
        admin
    </shiro:hasRole>

    <shiro:hasRole name="test">
        test
    </shiro:hasRole>

</div>
</body>
</html>
